<?php
require_model('base.class');
class DoctorsEper extends base {
    private $table = 'DoctorExperience';
    private $primary = 'ExperienceId';
    function __construct() {
        parent::__construct($this->table,$this->primary);
    }
    function ApplyNewExperience($params) {
        return $this->insert($params);
    }
    function ModifyExperience($params, $where) {
        return $this->update_item($params, $where);
    }
    function DeleteExperience($experienceId) {
        return $this->delete_item($experienceId);
    }
    function GetExperienceByDoctorUserName($username) {
        return $this->get_items(array('UserName'=>$username));
    }
}